import "./contents.css";
import render from "./contents.art";
import renderLoading from "../../../../components/loading/loading.art";

class Content {
  constructor(el) {
    this.el = el;
  }

  fillContent(data) {
    this.el.innerHTML = render({ content: data });
  }

  fillLoading() {
    this.el.innerHTML = renderLoading();
  }
}

export { Content };
